home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update26.zoo / test / diffs next >
Encoding:
Text File  |  1992-11-07  |  6.5 KB  |  259 lines

  1. *** 1.2    1992/08/14 17:14:34
  2. --- Changelo    1992/11/08 00:58:59
  3. ***************
  4. *** 16,18 ****
  5. --- 16,42 ----
  6.       to current position between getc()/putc() reversal.
  7.   
  8.   ----------------------  Patchlevel 04 --------------------------------------
  9. + tfseek.c:: ++jrb
  10. +     new test from glibc
  11. + tmemmv.c:: ++jrb
  12. +     new test from glibc
  13. + ttime.c:: ++jrb
  14. +     added one more test
  15. + float1.c:: ++jrb
  16. +     trivial test for fp. apparently this was broken at some point.
  17. + tregex.c:: ++jrb
  18. +     tregex was trying to write into const strings. corrected by
  19. +         copying string into a buffer (before breaking out fields in multiple())
  20. + tstrl2.c:: ++jrb
  21. +     the 0xGZZZZZ test case was expecting strtol() not to
  22. +     consume the leading zero. i think it should (our
  23. +     tstrtoul tests also things so).
  24. +     (i ran this test on an Hp-Snake, A Dec-Alpha, A Sony-Risc and 
  25. +      all of them agree).
  26. + ----------------------  Patchlevel 05 --------------------------------------
  27. *** 1.2    1992/08/14 17:14:34
  28. --- Makefile.hp    1992/11/08 00:58:59
  29. ***************
  30. *** 3,11 ****
  31.   #
  32.   # Must say hpux has come a ways: still fails some of the string tests
  33.   #
  34. ! SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
  35. ! tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c tstrl1.c \
  36. ! tstrl2.c ttime.c tstrtoul.c  twrseek.c
  37.   
  38.   .SUFFIXES: .ttp
  39.   
  40. --- 3,12 ----
  41.   #
  42.   # Must say hpux has come a ways: still fails some of the string tests
  43.   #
  44. ! SRC = float1.c tatof.c tbcopy.c tctype.c tfseek.c tprintf.c tqsort.c \
  45. ! trandm.c trdwr.c tregex.c tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c \
  46. ! tstrl1.c tstrl2.c tstrtoul.c ttime.c twrseek.c tmemmv.c
  47.   
  48.   .SUFFIXES: .ttp
  49.   
  50. *** 1.2    1992/08/14 17:14:34
  51. --- Makefile.sun    1992/11/08 00:59:00
  52. ***************
  53. *** 2,9 ****
  54.   # Makefile for Sun OS 4.0.3
  55.   #    half the tests can be done because there are no ANSI libs
  56.   #
  57. ! SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
  58. ! tscanf.c tsetjm.c tsignl.c tstdio.c   twrseek.c
  59.   
  60.   
  61.   .SUFFIXES: .ttp
  62. --- 2,9 ----
  63.   # Makefile for Sun OS 4.0.3
  64.   #    half the tests can be done because there are no ANSI libs
  65.   #
  66. ! SRC = float1.c tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
  67. ! tscanf.c tsetjm.c tsignl.c tstdio.c   twrseek.c tfseek.c
  68.   
  69.   
  70.   .SUFFIXES: .ttp
  71. *** 1.2    1992/08/14 17:14:34
  72. --- Makefile.tos    1992/11/08 00:59:00
  73. ***************
  74. *** 1,6 ****
  75. ! SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
  76. ! tregex.c tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c tstrl1.c \
  77. ! tstrl2.c ttime.c tstrtoul.c twrseek.c
  78.   
  79.   .SUFFIXES: .ttp
  80.   
  81. --- 1,6 ----
  82. ! SRC = float1.c tatof.c tbcopy.c tctype.c tfseek.c tprintf.c tqsort.c \
  83. ! trandm.c trdwr.c tregex.c tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c \
  84. ! tstrl1.c tstrl2.c tstrtoul.c ttime.c twrseek.c tmemmv.c
  85.   
  86.   .SUFFIXES: .ttp
  87.   
  88. *** 1.4    1992/08/14 17:14:34
  89. --- PatchLev.h    1992/11/08 00:59:00
  90. ***************
  91. *** 1,5 ****
  92.   
  93. ! #define    PatchLevel "04"
  94.   
  95.   /*
  96.    *
  97. --- 1,5 ----
  98.   
  99. ! #define    PatchLevel "05"
  100.   
  101.   /*
  102.    *
  103. *** 1.2    1992/04/19 17:06:14
  104. --- tprintf.out    1992/11/08 00:59:03
  105. ***************
  106. *** 9,15 ****
  107.   %*.*x:    `0012'
  108.   %0*.*x:    `0012'
  109.   bad format:    "z"
  110. ! nil pointer:    "00000000"
  111.   decimal negative:    "-2345"
  112.   octal negative:    "37777773327"
  113.   hex negative:    "fffff6d7"
  114. --- 9,15 ----
  115.   %*.*x:    `0012'
  116.   %0*.*x:    `0012'
  117.   bad format:    "z"
  118. ! nil pointer:    "0"
  119.   decimal negative:    "-2345"
  120.   octal negative:    "37777773327"
  121.   hex negative:    "fffff6d7"
  122. ***************
  123. *** 24,30 ****
  124.   left-adjusted Z string:    "Hi, Z.    "
  125.   space-padded string:    "    Hi, Z."
  126.   left-adjusted S string:    "Hi, Z.    "
  127. ! null string:    ""
  128.   limited string:    "Good morning, Doctor C"
  129.   e-style >= 1:    "1.234000e+01"
  130.   e-style >= .1:    "1.234000e-01"
  131. --- 24,30 ----
  132.   left-adjusted Z string:    "Hi, Z.    "
  133.   space-padded string:    "    Hi, Z."
  134.   left-adjusted S string:    "Hi, Z.    "
  135. ! null string:    "(null)"
  136.   limited string:    "Good morning, Doctor C"
  137.   e-style >= 1:    "1.234000e+01"
  138.   e-style >= .1:    "1.234000e-01"
  139. *** 1.1    1992/03/26 21:49:31
  140. --- tregex.c    1992/11/08 00:59:04
  141. ***************
  142. *** 244,252 ****
  143.   
  144.   regexp badregexp;        /* Implicit init to 0. */
  145.   
  146.   multiple()
  147.   {
  148. -     char *rbuf;
  149.       char *field[5];
  150.       char *scan;
  151.       int i, j;
  152. --- 244,252 ----
  153.   
  154.   regexp badregexp;        /* Implicit init to 0. */
  155.   
  156. + char rbuf[1024];
  157.   multiple()
  158.   {
  159.       char *field[5];
  160.       char *scan;
  161.       int i, j;
  162. ***************
  163. *** 255,261 ****
  164.   
  165.       errreport = 1;
  166.       lineno = 0;
  167. !         for(rbuf = test_input[0], j = 0; rbuf; rbuf = test_input[++j]) {
  168.           lineno++;
  169.           scan = rbuf;
  170.           for (i = 0; i < 5; i++) {
  171. --- 255,262 ----
  172.   
  173.       errreport = 1;
  174.       lineno = 0;
  175. !         for(j = 0; test_input[j]; j++) {
  176. !         strcpy(rbuf, test_input[j]);
  177.           lineno++;
  178.           scan = rbuf;
  179.           for (i = 0; i < 5; i++) {
  180. *** 1.1    1992/03/26 21:49:31
  181. --- tstrl2.c    1992/11/08 00:59:06
  182. ***************
  183. *** 61,67 ****
  184.     { "      -567]",     -567L,        OK,      10     },
  185.                                
  186.     { "ZZZZZZ",          0L,        OK,      0     },
  187. !   { "0xGZZZZZ",          0L,        OK,      0     },
  188.     { "08ZZZZZZ",          0L,        OK,      1     },
  189.     { "+0x1ZZZZZZ",      1L,        OK,      4     },
  190.     { " -07188888",      -071L,        OK,      5     },
  191. --- 61,67 ----
  192.     { "      -567]",     -567L,        OK,      10     },
  193.                                
  194.     { "ZZZZZZ",          0L,        OK,      0     },
  195. !   { "0xGZZZZZ",          0L,        OK,      1     },
  196.     { "08ZZZZZZ",          0L,        OK,      1     },
  197.     { "+0x1ZZZZZZ",      1L,        OK,      4     },
  198.     { " -07188888",      -071L,        OK,      5     },
  199. *** 1.1    1992/08/14 17:14:34
  200. --- tstrtoul.c    1992/11/08 00:59:06
  201. ***************
  202. *** 111,116 ****
  203.          errs++;
  204.       }
  205.       }
  206. !     printf("%d error(s)\n", errs);
  207. !     return errs;
  208.   }
  209. --- 111,117 ----
  210.          errs++;
  211.       }
  212.       }
  213. !     if (errs) printf("%d error(s)\n", errs);
  214. !     return errs ?  EXIT_FAILURE : EXIT_SUCCESS;
  215.   }
  216. *** 1.1    1992/03/26 21:49:31
  217. --- ttime.c    1992/11/08 00:59:07
  218. ***************
  219. *** 115,120 ****
  220. --- 115,130 ----
  221.       fputs (buffer, stdout);
  222.       strftime (buffer, SIZE, "The time is %I:%M %p.\n", loctime);
  223.       fputs (buffer, stdout);
  224. +     loctime->tm_year = 72;
  225. +     loctime->tm_mon = 8;
  226. +     loctime->tm_mday = 12;
  227. +     loctime->tm_hour = 20;
  228. +     loctime->tm_min = 49;
  229. +     loctime->tm_sec = 05;
  230. +     curtime = mktime (loctime);
  231. +     strftime (buffer, SIZE, "%D %T was %w the %jth.\n", loctime);
  232. +     fputs (buffer, stdout);
  233.     }
  234.   
  235.     return(lose ? EXIT_FAILURE : EXIT_SUCCESS);
  236. *** 1.1    1992/08/14 17:14:34
  237. --- twrseek.c    1992/11/08 00:59:07
  238. ***************
  239. *** 18,24 ****
  240. --- 18,26 ----
  241.           int status = 0;
  242.           long got;
  243.   
  244. + #ifdef atarist
  245.           _binmode(1);
  246. + #endif
  247.       if(!(fp = fopen(FILENAME,"w+")))
  248.           {
  249.           perror(FILENAME);
  250.